package com.zhang.common.util.result;


public enum REnum {
    SUCCESS(200, "OK"),
    UNKNOWN_ERROR(500, "未知错误"),
    RESOURCE_NOT_EXIST(404, "资源未找到"),
    UNAUTHORIZED(403, "你被拒绝访问"),
//    token相关

    ID_VERIFY_FAIL(401, "身份验证失败");//凡是需要重新登录的请求
    private Integer code;
    private String msg;

    REnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
